@extends('layout.home')

@section('content')
<div class="aw-content-wrap clearfix">
  <div class="col-sm-12 col-md-9 aw-main-content">
    <!-- tab 切换 -->
    <ul class="nav nav-tabs aw-nav-tabs active">
      <li class="active">
        <a href="http://localhost/adfsdfasdfadfadfasdfadfasdfa/?/publish/">帖子</a></li>
    </ul>
    <!-- end tab 切换 -->
    <form action="/homes/card" method="post" id="question_form">
      <div class="aw-mod aw-mod-publish">
        <div class="mod-body">
          <h3>帖子标题:</h3>
          <!-- 帖子标题 -->
          <div class="aw-publish-title">
            <div>
              <input placeholder="帖子标题..." name="title" id="question_contents" value="" class="form-control" type="text">
            </div>
            <div class="dropdown">
                  <select name="pid">
                    <option value="0">请选择</option>
                    @foreach($session1 as $k=>$v)
                    <option value="{{$v->id}}"> {{$v->sname}}</option>
                    @endforeach
                </select>
            </div>
          </div>
          <!-- end 问题标题 -->
          <h3>帖子内容:</h3>
		  <div class="aw-mod aw-editor-box">
			<div class="mod-head">
				<div class="wmd-panel">
		            <textarea class="wmd-input form-control autosize editor" id="wmd-input" rows="10" name="content"></textarea>
		        </div>
			</div>
			<div class="mod-body">
				<span class="pull-right text-color-999" id="question_detail_message">&nbsp;</span>
			</div>
		  </div>
          <div class="aw-topic-bar active" data-type="publish">
           
            <div class="aw-edit-topic-box form-inline" style="display: block;">
            </div>
          </div>
        </div>
        <div class="mod-footer clearfix">
          <span class="aw-anonymity">
            <label>
          <button class="btn btn-large btn-success btn-publish-submit" id="publish_submit">确认发起</button></div>
      </div>
      <!-- 添加隐藏域 -->
            {{csrf_field()}}
            <input type="hidden" name="time" value="{{date('Y-m-d H:i:s',time())}}">
            <input type="hidden" name="uid" value="{{session('id')}}">
    </form>
  </div>
  <!-- 侧边栏 -->
  <div class="col-sm-12 col-md-3 aw-side-bar hidden-xs">
    <!-- 问题发起指南 -->
    <div class="aw-mod publish-help">
      <div class="mod-head">
        <h3>帖子发起指南</h3></div>
      <div class="mod-body">
        <p>
          <b>• 帖子标题:</b>请用准确的语言描述您发布的帖子思想</p>
        <p>
          <b>• 帖子补充:</b>详细补充您的帖子内容, 并提供一些相关的素材以供参与者更多的了解您所发布帖子的主题思想</p>
        <p>
          <b>• 选择话题:</b>选择一个或者多个合适的话题, 让您发布的帖子得到更多有相同兴趣的人参与. 所有人可以在您发布帖子之后添加和编辑该帖子所属的话题</p>
      </div>
    </div>
    <!-- end 问题发起指南 --></div>
  <!-- end 侧边栏 --></div>
@endsection

@section('footer')

@show